import 'package:fluent_ui/fluent_ui.dart';

class MyIconButton extends StatelessWidget {
  final VoidCallback onPressed;
  final Widget icon;
  final Color? color;
  final Color? backgroundColor;
  final bool isEnable;

  const MyIconButton({
    Key? key,
    required this.icon,
    required this.onPressed,
    this.color,
    this.backgroundColor,
    this.isEnable = true,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: icon,
      onPressed: isEnable ? onPressed : null,
      //color: color,
    );
  }
}
